
obj-m += chr_dev.o
# 内核源码根目录
KERNEL_PATH = /opt/kernel/phytium-linux-kernel

all: chr_dev_app
	make -C $(KERNEL_PATH) M=$(PWD) modules

chr_dev_app:
	aarch64-none-linux-gnu-gcc -o chr_dev_app chr_dev_app.c

clean: clean_app
	make -C $(KERNEL_PATH) M=$(PWD) clean

clean_app:
	rm chr_dev_app

